﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:Localization="clr-namespace:ScrumTable.UI.View.Localization;assembly=ScrumTable.UI.View"
	xmlns:UserControls="clr-namespace:ScrumTable.UI.View.WinTouch.UserControls"
	xmlns:Command="clr-namespace:ScrumTable.UI.View.Command;assembly=ScrumTable.UI.View"
	xmlns:CustomControl1="clr-namespace:ScrumTable.UI.View.CustomControl;assembly=ScrumTable.UI.View"
	x:Class="ScrumTable.UI.View.WinTouch.UserControls.SubControls.AddChildTaskControl"
	x:Name="UserControl" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Label Style="{StaticResource ContentTitleLabel}" Grid.Row="0">
            <Label.Content>
                <Localization:Translate Default="[Childs]" Uid="General_Child" />
            </Label.Content>
        </Label>
        <UserControls:SurfaceDragDropListBox x:Name="ListProject" Grid.Row="1" AllowDrop="False" BorderThickness="1,0,1,1" DragOnMove="True" ItemsAreStatic="True" ItemsSource="{Binding Path=TasksAsViewModel}" MultipleColumnsRows="False" Orientation="Vertical" Background="Transparent">
            <UserControls:SurfaceDragDropListBox.ItemTemplate>
                <DataTemplate>
                    <UserControls:TaskControl ChangeToStretchWithMaxSize="190"  PreviewMouseDown="OnTaskControlPreviewMouseDown" PreviewTouchDown="OnTaskControlPreviewTouchDown" />
                </DataTemplate>
            </UserControls:SurfaceDragDropListBox.ItemTemplate>
            <UserControls:SurfaceDragDropListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <CustomControl1:StackPanelAnimated2 />
                </ItemsPanelTemplate>
            </UserControls:SurfaceDragDropListBox.ItemsPanel>
        </UserControls:SurfaceDragDropListBox>
        <UserControls:AddButton Grid.Row="1" Height="32" Width="32" ButtonType="Task" Command="{x:Static Command:CommandLib.AddTask}" FontSize="20" FontWeight="Bold" HorizontalAlignment="Right" HorizontalContentAlignment="Center" VerticalAlignment="Top" VerticalContentAlignment="Center" />        
    </Grid>
</UserControl>